cmake_minimum_required(VERSION 3.10.0)

project(Previewer LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 11)

add_compile_options(-Wno-narrowing -Wcpp -Wno-attributes)

set(JERRY_EXTERNAL_CONTEXT ON)
set(JERRY_DEBUGGER ON)

add_subdirectory(${PROJECT_SOURCE_DIR}/base/global/frameworks/resmgr_lite)
add_subdirectory(${PROJECT_SOURCE_DIR}/foundation/graphic/lite)
add_subdirectory(${PROJECT_SOURCE_DIR}/foundation/ace/frameworks/lite)
add_subdirectory(${PROJECT_SOURCE_DIR}/utils/native/lite/js/builtin)
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/bounds_checking_function)

include(${CMAKE_ROOT}/Modules/ExternalProject.cmake)

set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
